import request from '@/utils/request'

export const warehouse = (data) =>
  request.get('/api/warehouse/page', {
    params: {
      like_code: '',
      like_name: '',
      current: data.page,
      size: data.pagesize,
      descs: 'createTime'
    }
  })
export const changeWare = (data) =>
  request.put('/api/warehouse', {
    ...data
  })
export const cK = () => request.get('/api/codeFactory/next/CK')

export const postWare = (data) =>
  request.post('/api/warehouse', {
    ...data
  })
export const putWare = (data) =>
  request.put('/api/warehouse', {
    ...data
  })
